home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / boot / selector90.lha / Selector / Installer < prev    next >
Text File  |  1998-10-14  |  4KB  |  119 lines

  1. resident >nil: "`which selector`" pure add
  2.  
  3. cd install
  4. set t "@text '"
  5. set m "'@ @text '"
  6. set e "'@"
  7.  
  8. selector note $t This script helps you to decide $m which of the executable files $m to install. $e
  9.  
  10. execute getversions /selector c:selector
  11.  
  12. set aa `/tools/getver /selector`
  13. if $aa GT `/tools/getver C:selector` VAL
  14.     if `selector yesno $t Copy Selector to C: ? $m (This is the main program) $version` EQ Yes
  15.         copy /selector C:
  16.     endif
  17. endif
  18.  
  19. if not exists s:user-startup
  20.     echo >>s:user-startup " "
  21. endif
  22. /tools/getline s:user-startup opa resident C:selector
  23. if "$opa" EQ ""
  24.     if `selector yesno $t Make Selector resident $m in S:user-startup? $m This will make things faster $m and often save memory. $e` EQ Yes
  25.         setenv opa "Resident C:Selector pure add"
  26.         /tools/changeline s:user-startup opa resident C:selector
  27.     endif
  28. endif
  29.  
  30. ;selector docs.sel
  31.  
  32.  
  33. resident /tools/chopword pure add
  34. run >nil: selector messy "Please wait while analysing your system"
  35.  
  36. unsetenv aa
  37. unsetenv bb
  38. unset aa
  39. unset bb
  40. list >t:instemp /tools/ files pat ~(#?.info) lformat "/tools/getver >env:aa /tools/%n *N /tools/getver >env:bb C:%n *Nif $aa GT $bb VAL*Nsetenv %n button*Nelse*Nsetenv %n *"text @is installed@*"*Nendif"
  41. ;ttx t:instemp
  42. execute t:instemp
  43. echo >t:instemp "settings off*Ngap 0*Ncolumns 2*Nflow right*Ntextcol white"
  44. list >>t:instemp /tools/ files pat ~(#?.info) lformat "button %n exec 'execute getinfo %n'*N[%n] Install exec 'copy /tools/%n C:' setenv %n 'text @is installed@' update"
  45. echo >>t:instemp "x 640*Ny 11*Ntitle Installer"
  46.  
  47.  
  48. set aa `/tools/getver /tools/extras/MagicColors`
  49. if $aa GT `/tools/getver SYS:wbstartup/MagicColors` VAL
  50.     setenv MagicColors button
  51. else
  52.     setenv MagicColors "text @is installed@"
  53. endif
  54.  
  55. echo >>t:instemp "button MagicColors exec 'execute getinfo MagicColors /tools/extras/ SYS:WBStartup/'*N[MagicColors] Install exec 'copy /tools/extras/MagicColors#? SYS:WBStartup' setenv MagicColors 'text @is installed@' update"
  56.  
  57. setenv ExecuteHack button
  58. if exists C:execute.orig
  59.     set aa `/tools/getver /tools/extras/execute`
  60.     if $aa GT `/tools/getver C:execute` VAL
  61.         setenv ExecuteHack button
  62.     else
  63.         setenv ExecuteHack "text @is installed@"
  64.     endif
  65. endif
  66.  
  67. echo >>t:instemp "button ExecuteHack exec 'execute getexinfo'*N[ExecuteHack] Install exec 'execute inex' setenv ExecuteHack 'text @is installed@' update"
  68.  
  69.  
  70.  
  71.  
  72.  
  73. echo " Install Info"
  74. echo "------------"
  75. echo " "
  76. echo "Press the buttons in the left column for info about"
  77. echo "the programs. Press a button in the right column to"
  78. echo "install the program."
  79. echo " "
  80. echo "You don't have to install all programs. Press the"
  81. echo "left buttons to read about the programs and decide if"
  82. echo "you want to install them or not. You can always run this"
  83. echo "install tool later to install more tools."
  84. echo " "
  85. echo "The tools that I think is the most important to install"
  86. echo "is WBRun, MagicColors (if you not allready have a similar"
  87. echo "program installed), and perhaps RequestString."
  88. echo " "
  89. echo "Close the button window when ready installing."
  90.  
  91. selector t:instemp
  92. echo " "
  93. list >t:instemp /tools/ files pat ~(#?.info) lformat "unsetenv %n"
  94. execute t:instemp
  95. delete >nil: t:instemp
  96. unsetenv executehack
  97. unsetenv opa
  98. unsetenv magiccolors
  99.  
  100. if exists c:wbrun
  101.     if exists libs:MagicColors.info
  102.         set aa `/tools/getver sys:libs/parm.library`
  103.     else
  104.         set aa `/tools/getver libs:parm.library`
  105.     endif
  106.     if `/tools/getver /tools/extras/parm.library` GT $aa VAL
  107.         execute getversions /tools/extras/parm.library libs:parm.library
  108.         if `selector yesno $t parm.library is needed for WbRun $m Install it? $version` EQ Yes
  109.             copy /tools/extras/parm.library libs:
  110.         endif
  111.     endif
  112. endif
  113.  
  114. resident chopword remove
  115.  
  116. echo " "
  117. echo "The installation is ready..."
  118.  
  119.